package days25.title28;

/**
 * @Author fengzihao
 * @Date 2024-05-09 20:24
 */
class Solution {
    public int strStr(String haystack, String needle) {
        boolean contains = haystack.contains(needle);
        if(!contains)
            return -1;
        return haystack.indexOf(needle);
    }
}
